/*
fontScale:(width:750px/minFsize)
*/
$fontSize: 24px;
$fontScale: 750;

html {
    font-size: $fontSize;
}
@media screen and(max-width:750px) {
    html {
        font-size: $fontSize;
    }
}
@media screen and(max-width:600px) {
    html {
        font-size: 600/$fontScale*$fontSize;
    }
}
@media screen and(max-width:420px) {
    html {
        font-size: 420/$fontScale*$fontSize;
    }
}
@media screen and(max-width:350px) {
    html {
        font-size: 350/$fontScale*$fontSize;
    }
}

body {
    background-color: #eeeeee;
    max-width: 750px;
    margin: 0 auto;
}

.tips {
    position: fixed;
    bottom: 10rem;
    left: 2rem;
    right: 2rem;
    z-index: 100;
    text-align: center;
    transition: all 0.2s ease-out;
    font-size: 1.4rem;
    line-height: 1.5em;
    opacity: 0;

    span {
        display: inline-block;
        background-color: rgba(0,0,0,.5);
        color: #fff;
        padding: 0.8rem 2rem;
        border-radius: 0.4rem;
        min-width: 4rem;
    }
}

.header {
    position: fixed;
    z-index: 6;
    left: 0;
    right: 0;
    top: 0;
    font-size: #{(34/24)}rem;
    color: #333;
    background-color: #fff;
    line-height: #{(100/24)}rem;
    border-bottom: 1px solid #cccccc;
    text-align: center;
    padding: 0 4rem;
    box-sizing: border-box;
    //font-weight: bold;

    .h-back {
        display: inline-block;
        float: left;
        padding: 0 1rem;
        position: absolute;
        left: 0;
        top: 0;

        img {
            height: #{(34/24)}rem;
        }
    }
}

.mask {
    position: fixed;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(0,0,0,0.2);
}

.footer {
    position: fixed;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

input::-webkit-search-cancel-button {
    display: none;
}

input[type=search]::-ms-clear {
    display: none;
}
